package org.mall.modules.shoptype.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.List;

/**
 * @Description: 商品类目/商户类型
 * @Author: jeecg-boot
 * @Date:   2019-10-30
 * @Version: V1.0
 */
@Data
@TableName("shop_type")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="shop_type对象", description="商品类目/商户类型")
public class ShopType {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private java.lang.Integer id;
	/**1 ：商铺类型 2 ：商品类型 */
	@Excel(name = "1 ：商铺类型 2 ：商品类型 ", width = 15)
    @ApiModelProperty(value = "1 ：商铺类型 2 ：商品类型 ")
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private java.lang.Integer type;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
	private java.lang.String name;
	/**上一级id*/
	@Excel(name = "上一级id", width = 15)
    @ApiModelProperty(value = "上一级id")
	private java.lang.Integer parentId;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
	private java.lang.String note;

	@TableField(exist = false)
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private List<ShopType> children;

	private Integer level;

	private String picture;

}
